package vistas.ui;
import java.awt.Component;

import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JDesktopPane;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.LayoutStyle;
import javax.swing.SwingConstants;
import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ModificarItemPresupuestoFrame extends javax.swing.JInternalFrame {
	private JButton btnAceptar;
	private JButton btnCancelar;
	private JTextField txtPrecioUnitario;
	private JScrollPane jScrollPane1;
	private JTextPane jTextPane1;
	private JTextField txtTotalItem;
	private JComboBox cmbTipoServicio;
	private JLabel lblTotalItem;
	private JLabel lblTipoServicio;
	private JTextField txtCantidad;
	private JLabel lblPrecioUnitario;
	private JLabel lblCantidad;
	private JPanel pnlDescripcion;

	/**
	* Auto-generated main method to display this 
	* JInternalFrame inside a new JFrame.
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		AgregarItemPresupuestoFrame inst = new AgregarItemPresupuestoFrame();
		JDesktopPane jdp = new JDesktopPane();
		jdp.add(inst);
		jdp.setPreferredSize(inst.getPreferredSize());
		frame.setContentPane(jdp);
		frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public ModificarItemPresupuestoFrame() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			this.setPreferredSize(new java.awt.Dimension(462, 288));
			this.setBounds(0, 0, 462, 288);
			setVisible(true);
			GroupLayout thisLayout = new GroupLayout((JComponent)getContentPane());
			getContentPane().setLayout(thisLayout);
			this.setTitle("Modificar item presupuesto");
			this.setAutoscrolls(true);
			{
				btnAceptar = new JButton();
				btnAceptar.setText("Aceptar");
			}
			{
				btnCancelar = new JButton();
				btnCancelar.setText("Cancelar");
			}
			{
				pnlDescripcion = new JPanel();
				GroupLayout pnlDescripcionLayout = new GroupLayout((JComponent)pnlDescripcion);
				pnlDescripcion.setBorder(BorderFactory.createTitledBorder("Descripcion"));
				pnlDescripcion.setLayout(pnlDescripcionLayout);
				{
					jScrollPane1 = new JScrollPane();
					{
						jTextPane1 = new JTextPane();
						jScrollPane1.setViewportView(jTextPane1);
						jTextPane1.setAutoscrolls(false);
					}
				}
				pnlDescripcionLayout.setVerticalGroup(pnlDescripcionLayout.createSequentialGroup()
					.addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 124, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(12, 12));
				pnlDescripcionLayout.setHorizontalGroup(pnlDescripcionLayout.createSequentialGroup()
					.addContainerGap(12, 12)
					.addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 408, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(12, 12));
			}
			{
				txtTotalItem = new JTextField();
				txtTotalItem.setEditable(false);
			}
			{
				lblCantidad = new JLabel();
				lblCantidad.setText("Cantidad: ");
			}
			{
				lblPrecioUnitario = new JLabel();
				lblPrecioUnitario.setText("Precio unitario: ");
			}
			{
				txtCantidad = new JTextField();
			}
			{
				txtPrecioUnitario = new JTextField();
			}
			{
				lblTipoServicio = new JLabel();
				lblTipoServicio.setText("Tipo de servicio: ");
			}
			{
				lblTotalItem = new JLabel();
				lblTotalItem.setText("Total Item: ");
			}
			{
				ComboBoxModel cmbTipoServicioModel = 
						new DefaultComboBoxModel(
								new String[] { "Item One", "Item Two" });
				cmbTipoServicio = new JComboBox();
				cmbTipoServicio.setModel(cmbTipoServicioModel);
			}
			thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
				.addContainerGap()
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(lblTipoServicio, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
				    .addComponent(cmbTipoServicio, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(txtCantidad, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lblCantidad, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(lblTotalItem, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
				    .addComponent(lblPrecioUnitario, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)
				    .addComponent(txtPrecioUnitario, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(txtTotalItem, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addComponent(pnlDescripcion, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE)
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(btnCancelar, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(btnAceptar, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE))
				.addContainerGap(17, 17));
			thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup()
				.addContainerGap()
				.addGroup(thisLayout.createParallelGroup()
				    .addGroup(thisLayout.createSequentialGroup()
				        .addGroup(thisLayout.createParallelGroup()
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addComponent(lblCantidad, GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)
				                .addGroup(thisLayout.createParallelGroup()
				                    .addComponent(txtCantidad, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)
				                    .addComponent(txtPrecioUnitario, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 104, GroupLayout.PREFERRED_SIZE)))
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addComponent(lblPrecioUnitario, GroupLayout.PREFERRED_SIZE, 120, GroupLayout.PREFERRED_SIZE)
				                .addGap(88)))
				        .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
				        .addGroup(thisLayout.createParallelGroup()
				            .addGroup(thisLayout.createSequentialGroup()
				                .addGroup(thisLayout.createParallelGroup()
				                    .addComponent(lblTotalItem, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 108, GroupLayout.PREFERRED_SIZE)
				                    .addComponent(lblTipoServicio, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 108, GroupLayout.PREFERRED_SIZE))
				                .addGroup(thisLayout.createParallelGroup()
				                    .addComponent(cmbTipoServicio, GroupLayout.Alignment.LEADING, 0, 108, Short.MAX_VALUE)
				                    .addComponent(txtTotalItem, GroupLayout.Alignment.LEADING, 0, 108, Short.MAX_VALUE)))
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addGap(0, 0, Short.MAX_VALUE)
				                .addComponent(btnCancelar, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)
				                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				                .addComponent(btnAceptar, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)
				                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 0, GroupLayout.PREFERRED_SIZE))))
				    .addComponent(pnlDescripcion, GroupLayout.Alignment.LEADING, 0, 442, Short.MAX_VALUE))
				.addGap(6));
			thisLayout.linkSize(SwingConstants.VERTICAL, new Component[] {btnAceptar, btnCancelar});
			thisLayout.linkSize(SwingConstants.VERTICAL, new Component[] {txtPrecioUnitario, lblCantidad});
			thisLayout.linkSize(SwingConstants.VERTICAL, new Component[] {lblTotalItem, lblTipoServicio});
			thisLayout.linkSize(SwingConstants.HORIZONTAL, new Component[] {btnAceptar, btnCancelar});
			thisLayout.linkSize(SwingConstants.HORIZONTAL, new Component[] {txtPrecioUnitario, lblCantidad});
			thisLayout.linkSize(SwingConstants.HORIZONTAL, new Component[] {lblTotalItem, lblTipoServicio});
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
